<?php
if(get_field('field_name'))
{
echo '<p>' . get_field('field_name') . '</p>';
}
?>
<p><?php the_field('field_name'); ?></p>
<?php
$variable = get_field('field_name');
// do something with $variable
?>